package o2o.dao.PO.print;

import o2o.dao.VO.print.PrintMessageVO;
import org.springframework.beans.BeanUtils;

public class PrintMessage {
    private Long id;  // 主键id
    private Integer type; // 打印机类型 1 易云联 2 飞鹅
    private String name; // 名称
    private Long shopId; //  店铺id
    private String partner;  // 用户的id
    private String machine_code;  // 打印机的终端号
    private String apikey;   //  api 密钥
    private String mkey;   // 打印机密钥
    private String feUser; // 飞鹅打印机用户账户
    private String feUkey;  // 飞鹅打印机 key
    private Integer feTime;// 打印次数
    private String sysAppkey;//  系统标识
    private Integer isOpen = 1; // 是否开启  默认是开启的
    private int delFlag = 0;   //  是否已删除
    private String createUser;  // 创建者
    private Long createTime;   // 创建时间
    private String updateUser;   //  最后更新者
    private Long updateTime;  //  最后更新时间
    private String username;  //  易联云的用户名
    private String mobilePhone;  // 易联云绑定的手机号
    private String extra1;  // 备用字段1
    private String extra2; //  备用字段2
    private String extra3;  // 备用字段3

    public PrintMessageVO convert2VO() {
        PrintMessageVO vo = new PrintMessageVO();
        BeanUtils.copyProperties(this, vo);
        return vo;
    }


    public Integer getIsOpen() {
        return isOpen;
    }

    public PrintMessage setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
        return this;
    }

    public String getName() {
        return name;
    }

    public PrintMessage setName(String name) {
        this.name = name;
        return this;
    }

    public String getFeUser() {
        return feUser;
    }

    public PrintMessage setFeUser(String feUser) {
        this.feUser = feUser;
        return this;
    }

    public String getFeUkey() {
        return feUkey;
    }

    public PrintMessage setFeUkey(String feUkey) {
        this.feUkey = feUkey;
        return this;
    }

    public Integer getFeTime() {
        return feTime;
    }

    public PrintMessage setFeTime(Integer feTime) {
        this.feTime = feTime;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public PrintMessage setType(Integer type) {
        this.type = type;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public PrintMessage setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public PrintMessage setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
        return this;
    }

    public Long getId() {
        return id;
    }

    public PrintMessage setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getShopId() {
        return shopId;
    }

    public PrintMessage setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }

    public String getPartner() {
        return partner;
    }

    public PrintMessage setPartner(String partner) {
        this.partner = partner;
        return this;
    }

    public String getMachine_code() {
        return machine_code;
    }

    public PrintMessage setMachine_code(String machine_code) {
        this.machine_code = machine_code;
        return this;
    }

    public String getApikey() {
        return apikey;
    }

    public PrintMessage setApikey(String apikey) {
        this.apikey = apikey;
        return this;
    }

    public String getMkey() {
        return mkey;
    }

    public PrintMessage setMkey(String mkey) {
        this.mkey = mkey;
        return this;
    }

    public String getSysAppkey() {
        return sysAppkey;
    }

    public PrintMessage setSysAppkey(String sysAppkey) {
        this.sysAppkey = sysAppkey;
        return this;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public PrintMessage setDelFlag(int delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public PrintMessage setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public PrintMessage setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public PrintMessage setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public PrintMessage setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getExtra1() {
        return extra1;
    }

    public PrintMessage setExtra1(String extra1) {
        this.extra1 = extra1;
        return this;
    }

    public String getExtra2() {
        return extra2;
    }

    public PrintMessage setExtra2(String extra2) {
        this.extra2 = extra2;
        return this;
    }

    public String getExtra3() {
        return extra3;
    }

    public PrintMessage setExtra3(String extra3) {
        this.extra3 = extra3;
        return this;
    }
}